package com.visikard.item;

import android.os.Parcel;
import android.os.Parcelable;

public class CreateCouponParams implements Parcelable {

	private String cpName;
	private String cpDescription;
	private String cpStartDate; // MM/dd/yyyy
	private String cpEndDate; // MM/dd/yyyy
	private String cpExpireDate;// MM/dd/yyyy
	private String cpTimeZone;
	private int cpEnable;
	private int cpPercentOff;
	private int cpMaxOff;
	private String cpLocation;

	public CreateCouponParams() {
		// TODO Auto-generated constructor stub
		this.cpName = "";
		this.cpDescription = "";
		this.cpStartDate = "";
		this.cpEndDate = "";
		this.cpExpireDate = "";
		this.cpTimeZone = "";
		this.cpEnable = 0;
		this.cpPercentOff = 0;
		this.cpMaxOff = 0;
		this.cpLocation = "";

	}

	public CreateCouponParams(Parcel in) {
		cpName = in.readString();
		cpDescription = in.readString();
		cpStartDate = in.readString();
		cpEndDate = in.readString();
		cpExpireDate = in.readString();
		cpTimeZone = in.readString();
		cpEnable = in.readInt();
		cpPercentOff = in.readInt();
		cpMaxOff = in.readInt();
		cpLocation = in.readString();

	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		dest.writeString(cpName);
		dest.writeString(cpDescription);
		dest.writeString(cpStartDate);
		dest.writeString(cpEndDate);
		dest.writeString(cpExpireDate);
		dest.writeString(cpTimeZone);
		dest.writeInt(cpEnable);
		dest.writeInt(cpPercentOff);
		dest.writeInt(cpMaxOff);
		dest.writeString(cpLocation);

	}

	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
		public CreateCouponParams createFromParcel(Parcel in) {
			return new CreateCouponParams(in);
		}

		public CreateCouponParams[] newArray(int size) {
			return new CreateCouponParams[size];
		}
	};

	public void setCpName(String cpName) {
		this.cpName = cpName;
	}

	public String getCpName() {
		return cpName;
	}

	public void setCpDescription(String cpDescription) {
		this.cpDescription = cpDescription;
	}

	public String getCpDescription() {
		return cpDescription;
	}

	public void setCpStartDate(String cpStartDate) {
		this.cpStartDate = cpStartDate;
	}

	public String getCpStartDate() {
		return cpStartDate;
	}

	public void setCpEndDate(String cpEndDate) {
		this.cpEndDate = cpEndDate;
	}

	public String getCpEndDate() {
		return cpEndDate;
	}

	public void setCpExpireDate(String cpExpireDate) {
		this.cpExpireDate = cpExpireDate;
	}

	public String getCpExpireDate() {
		return cpExpireDate;
	}

	public void setCpTimeZone(String cpTimeZone) {
		this.cpTimeZone = cpTimeZone;
	}

	public String getCpTimeZone() {
		return cpTimeZone;
	}

	public void setCpEnable(int cpEnable) {
		this.cpEnable = cpEnable;
	}

	public int getCpEnable() {
		return cpEnable;
	}

	public void setCpPercentOff(int cpPercentOff) {
		this.cpPercentOff = cpPercentOff;
	}

	public int getCpPercentOff() {
		return cpPercentOff;
	}

	public void setCpMaxOff(int cpMaxOff) {
		this.cpMaxOff = cpMaxOff;
	}

	public int getCpMaxOff() {
		return cpMaxOff;
	}

	public void setCpLocation(String cpLocation) {
		this.cpLocation = cpLocation;
	}

	public String getCpLocation() {
		return cpLocation;
	}

}
